﻿#pragma once

#include "myCategoryUiList.h"
#include "myNoteUilist.h"
#include "myPubFunc.h"


/*主列表 窗口*/
#define IDC_TOOLBAR_TEXT			201                       
#define MZ_IDC_LIST_NOTES            202

#define IDC_PPM_OK			        204
#define IDC_PPM_CANCEL				205

#define MZ_IDC_LIST_CATEGORYS       206
#define	MZ_IDC_BTN_SEARCH			207


class MainListWnd: 
	public CMzWndEx
{

	MZ_DECLARE_DYNAMIC(MainListWnd);

public:
	MainListWnd(void); 
	~MainListWnd(void);

	UiToolbar_Text m_toolbar_main;
	EditType m_opttype;
	MyNotesUiList m_List_notes;  
	MyCategoryUiList m_list_categorys;
	UiPicture m_PicMainBG;
	UiButton_Image m_btnimg;



	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);


protected:

	virtual BOOL OnInitDialog();                              

	void LoadNotesList(int idNO);
	void switchToolbarMain(EditType optType);
	void LoadCategorysList();

	virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);  
};

